﻿<controls:MetroWindow x:Class="QuickMail.View.Windows.PropertyWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="Properties of the rule" Height="500" Width="500" MinWidth="500" MinHeight="400"
        FontSize="14" 
        WindowStartupLocation="CenterScreen"
        FontWeight="DemiBold">
    <Border BorderThickness="1" BorderBrush="#41B1E1">
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="130"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <TextBlock Grid.Row="0" Grid.Column="0" x:Name="PathTextBlock" Text="Path to the folder:" Margin="5" 
                       VerticalAlignment="Center" HorizontalAlignment="Left"/>
            <TextBox Grid.Row="0" Grid.Column="1" Margin="5" x:Name="PathTextBox"/>
            <Button x:Name="BrowseButton" Grid.Row="0" Grid.Column="2" Width="100" Margin="5"
                    Content="Browse" FontSize="12" Click="BrowseFolder_OnClick"/>

            <TextBlock Grid.Row="1" Grid.Column="0" x:Name="RuleNameTextBlock" Text="Name of the rule:" Margin="5" 
                       VerticalAlignment="Center" HorizontalAlignment="Left"/>
            <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" x:Name="TitleTextBox" Margin="5"/>

            <TextBlock Grid.Row="2" Grid.Column="0" x:Name="ActionTextBlock" Text="Action:" Margin="5" 
                       VerticalAlignment="Center" HorizontalAlignment="Left"/>
            <ComboBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="5" x:Name="ActionComboBox"
                      SelectionChanged="ActionComboBox_OnSelectionChanged">
                <ComboBoxItem x:Name="NoneItem" Content="None"/>
                <ComboBoxItem x:Name="SendItem" Content="Send"/>
                <ComboBoxItem x:Name="ReceiveItem" Content="Receive"/>
            </ComboBox>

            <ContentPresenter Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" x:Name="ActionPresenter"/>

            <CheckBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" x:Name="AddChildrensCheckBox" Margin="5" 
                      IsChecked="True" Content="Add subfolders" Visibility="Collapsed"/>
            <Button Grid.Row="4" Grid.Column="1" x:Name="ApplyButton" Content="Apply" Margin="5" Width="100" Height="30"
                    HorizontalAlignment="Right" IsDefault="True" Click="Apply_OnClick"/>
            <Button Grid.Row="4" Grid.Column="2" x:Name="CancelButton" Content="Cancel" Width="100" Margin="5" IsCancel="True"/>
        </Grid>
    </Border>
</controls:MetroWindow>
